package com.van.bo.badwrting;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 子单号，主单号（子单号中，是否有主单号？）
 * <p>
 * 是否有两种阅读模式，按频道审查，按主单号审查？
 * <p>
 * TODO
 */
public class ChannelInfo implements Serializable {
    private static final long serialVersionUID = 5710293639676035958L;
    @Id
    private String id;


    private String age = "18";
    private String channel = "基金";
    private CQNumInfo cqNumInfo = new CQNumInfo();
    private LocalDateTime createTime = LocalDateTime.now();
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public CQNumInfo getCqNumInfo() {
        return cqNumInfo;
    }

    public void setCqNumInfo(CQNumInfo cqNumInfo) {
        this.cqNumInfo = cqNumInfo;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    @Override
    public String toString() {
        return "ChannelInfo{" +
                "id='" + id + '\'' +
                ", age='" + age + '\'' +
                ", channel='" + channel + '\'' +
                ", cqNumInfo=" + cqNumInfo +
                ", createTime=" + createTime +
                '}';
    }
}